package com.gitee.wsl.common.svg.clip

import com.gitee.wsl.common.svg.attributes.DefaultAttributeProperty
import com.gitee.wsl.common.svg.container.Container

class CLIP(validation: Boolean = false) : Container("clipPath", validation) {

    var clipPathUnits: PosMode? by DefaultAttributeProperty()

}

/**
 * Pos mode
 * Coordinate mode,
 * [.MODE_USERSPACE] is global coordinates.
 * [.MODE_BOX] is relative to the coordinates of the reference object
 *
 * @since 0.0.1
 */
enum class PosMode(val value:String) {
    MODE_BOX("objectBoundingBox"),MODE_USERSPACE("userSpaceOnUse");

    override fun toString(): String {
        return value
    }
}